import numpy as np
import cv2 as cv
import os

BASE_DIR, FILE_NAME = os.path.split(__file__)
path = '../../../../../../large_data/pic/alphabet'
IMG_DIR = os.path.join(BASE_DIR, path)

for file_name in os.listdir(IMG_DIR):
    if '.nomedia' == file_name:
        continue
    file_path = os.path.join(IMG_DIR, file_name)
    img = cv.imread(file_path)
    result = np.unique(img[:, :, 0] == img[:, :, 1])
    print(file_name, img.shape, result)
print('Over')
